package xinxin.com.SingletonPattern;

import xinxin.com.SingletonPattern.Singleton.Singleton;
import xinxin.com.SingletonPattern.Singleton.SingletonE;
import xinxin.com.SingletonPattern.Singleton.SingletonS;

import static xinxin.com.SingletonPattern.Singleton.SingletonE.SINGLETON;
/**
 * @author Shixinxin
 */
public class SingletonPattern {
    public static void main(String[] args) {
//        SINGLETON.doSomethingd();
//        SingletonE s2 = SingletonE.getInstance();
//        SingletonE s3 = SingletonE.getInstance();
//
//        System.out.println(s1);
//        System.out.println(s2);
//        System.out.println(s3);
        Singleton s1 = Singleton.getInstance();
        Singleton s2 = Singleton.getInstance();
        Singleton s3 = Singleton.getInstance();
        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s3);
    }
}
